package cn.dengta.webapp.user.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.common.model.ValueProxyImpl;
import lombok.Getter;

@Getter
public enum FindTagType implements ValueProxyImpl<FindTagType, Integer> {
	LOOK_AROUND("随便看看"),
	LOVE("谈个恋爱"),
	FRIEND("交个朋友"),
	;

	ValueProxy<FindTagType, Integer> proxy;

	FindTagType(String label) {
		proxy = new ValueProxy<>(this, ordinal(), label);
	}

	public static final FindTagType of(Integer value) {
		return LOOK_AROUND.getValueOf(value);
	}

	public static String ofLabel(Integer value) {
		return ValueProxyImpl.label(of(value));
	}
}
